@import './tool';
@import './flex';
@import './element-hack';

html, body {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /*background-color: $bgGrey;*/
  padding: 0;
  margin: 0;
  font-size: 13px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #f5f7fc;
}

#app {
  width: 100%;
  height: 100%;
  min-height: 700px;
  min-width: 1400px;
}

p {
  margin: 0;
  padding: 0;
}

ul, li {
  padding: 0;
  margin: 0;
  list-style: none;
}

// 滚动条样式调整
::-webkit-scrollbar-track-piece {
  background-color: #fff;
  -webkit-border-radius: 0
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px
}

::-webkit-scrollbar-thumb {
  height: 50px;
  background-color: #b8b8b8;
  -webkit-border-radius: 6px;
  outline: 2px solid #fff;
  outline-offset: -2px;
  border: 2px solid #fff;
  filter: alpha(opacity=50);
  -moz-opacity: 0.5;
  -khtml-opacity: 0.5;
  opacity: 0.5
}

::-webkit-scrollbar-thumb:hover {
  height: 50px;
  background-color: #878987;
  -webkit-border-radius: 6px
}

.main-card {
  background-color: #fff;
  padding: $spaceSize;
  // height: calc(100vh - #{$headerHeight + 45px})!important;
}


// 右侧table布局公用部分（带search）
.comm-page-table-warp {
  .el-card {
    height: calc(100vh - 190px);
    min-height: 700px;
    background-color: #fff;
    // margin-top:44px;
    border-bottom-color: transparent;
  }
}

// 禁止操作层
.disabled-wrap {
  position: relative;

  .disabled-mask {
    position: absolute;
    background: #fff;
    top: 0;
    right: 0;
    border: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: 2;
  }
}

// hover Popover title
.popover-header {
  font-size: 14px;
  line-height: 36px;
  text-indent: 20px;
  margin: -8px -12px 0 -12px;
  color: $blackColor1;
  border-bottom: 1px solid $borderGrey;
}


@mixin clearfix {
  zoom: 1;
  &:after {
    content: "";
    display: block;
    clear: both;
  }
}

@mixin nowrap {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}

@mixin arrow-right {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #757575;
}

@mixin card-panel-title {
  display: inline-block;
  font-size: 15px;
  color: #00002a;
  letter-spacing: -0.13px;
  line-height: 18px;
  font-weight: 600;
  zoom: 1;
}

.icon-arrow-right {
  @include arrow-right
}

.clearfix {
  @include clearfix;
}

.nowrap {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}

.el-textarea__inner {
  resize: none;
}


.color-blue {
  color: #0079FF;
}

.color-red {
  color: #DF6161;
}

.sub-title-5 {
  display: inline-block;
  color: #606266;
}

.text-warning {
  background: #FFF6F6;
  color: #DF6161;
  display: inline-block;
  border: 1px solid #DF6161;
  border-radius: 9px;
  line-height: 18px;
  padding: 0 6px;
}

.tag-error {
  background: #FFF6F6;
  color: #DF6161;
  display: inline-block;
  border: 1px solid #DF6161;
  border-radius: 9px;
  height: 18px;
  line-height: 18px;
  padding: 0 6px;
  margin: 0 5px;
}

.tag-success {
  background: #defff1;
  color: #2fc8a1;
  display: inline-block;
  border: 1px solid #2fc8a1;
  border-radius: 9px;
  height: 18px;
  line-height: 18px;
  padding: 0 6px;
  margin: 0 5px;
}


